package com.ruoyi.business.service.impl;

import com.ruoyi.business.domain.statistics.StatisticsBigDecimalBO;
import com.ruoyi.business.service.StatisticsService;
import com.ruoyi.common.core.domain.entity.SysDictData;
import org.springframework.stereotype.Component;

/**
 * 统计结果为Long的统计业务接口
 *
 * @author YW
 * @create 2021/7/3
 */
@Component
public class StatisticsBigDecimalService extends StatisticsService<StatisticsBigDecimalBO> {
    @Override
    protected StatisticsBigDecimalBO initDefaultStatistics(SysDictData dictDatas) {
        String dictValue = dictDatas.getDictValue();
        String label = dictDatas.getDictLabel();
        return new StatisticsBigDecimalBO(dictValue, label);
    }
}
